/* 少儿编程网站样式 */

:root {
    --primary-color: #1e90ff;  /* 科技蓝主色调 */
    --primary-dark: #187bcd;   /* 深色变体 */
    --primary-light: #47a3ff;  /* 浅色变体 */
}

body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
}

header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
}

header p {
    font-size: 1.25rem;
}

.navbar {
    padding: 0.5rem 0;
    background-color: var(--primary-color) !important;
}

.navbar-nav {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    color: white !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 20px;  /* 调整为圆角 */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: white;
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.display-4 {
    font-weight: bold;
    color: var(--primary-color);
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-primary {
    padding: 0.5rem 2rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 20px;  /* 调整为圆角 */
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    transition: all 0.3s ease;
    border-radius: 20px;  /* 调整为圆角 */
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: none;
    background-color: var(--primary-color);
}

.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

/* 左侧菜单样式 */
.sidebar .nav-link {
    color: #333 !important;  /* 深灰色文字 */
    padding: 0.5rem 1rem;
    margin-bottom: 0.2rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: var(--primary-color) !important;
    background-color: #e9ecef;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    color: #666;  /* 图标颜色 */
}

footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.container {
    margin-top: 30px;
}
